﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FasterWPF
{
    public class CompositeKeyNotFoundException: Exception
    {
        public CompositeKeyNotFoundException(string message, string keyString)
            : base(message)
        {
            KeyString = keyString;
        }

        public string KeyString { get; private set; }
    }

    public class DuplicateSettingException : Exception
    {
        public DuplicateSettingException(string message, string keyString)
            : base(message)
        {
            KeyString = keyString;
        }

        public string KeyString { get; private set; }
    }

    public class KeyNullException : Exception
    {
        public KeyNullException(string message)
            : base(message)
        {
        }
    }

    public class NotAParentException : Exception
    {
        public NotAParentException(string message)
            : base(message)
        {
        }
    }

    public class InvalidPropertyException : Exception
    {
        public InvalidPropertyException(string message, string propertyString)
            : base(message)
        {
            PropertyString = propertyString;
        }

        public string PropertyString { get; private set; }
    }
}
